<div class="header">
    <h1 class="page-title">管理员列表</h1>
</div>

<div class="well">
    <!-- search button -->
    <form action="/admin/managerList" method="get" class="form-search">
        <div class="row-fluid" style="text-align: left;">
            <div class="pull-left span4 unstyled">
                <p> 用户名：<input class="input-medium" name="username" value="{$username}" type="text"></p>
            </div>
        </div>
        <button type="submit" class="btn">查找</button>
        <a class="btn btn-primary" href="#">新增</a>
    </form>
</div>
<div class="well">
    <!-- table -->
    <table class="table table-bordered table-hover table-condensed">
        <thead>
        <tr>
            <th>编号</th>
            <th>用户名</th>
            <th>昵称</th>
            <th>邮箱</th>
            <th>是否可用</th>
            <th>上次登录时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $data  as $value}
        <tr class="success">
            <td>{$value.id}</td>
            <td>{:str_replace($username,"<font color='red'>$username</font>",$value.username)}</td>
            <td>好吃的橙子</td>
            <td>admin@itcast.cn</td>
            <td>可用</td>
            <td>2017-04-01 08:00:00</td>
            <td>
                <a href="javascript:void(0);"> 编辑 </a>
                <a href="javascript:void(0);" onclick="if(confirm('确认删除？')) location.href='#'"> 删除 </a>
                <a href="javascript:void(0);"> 重置密码 </a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    <!-- pagination -->
    <div class="pagination">
        {$data|raw}
    </div>
</div>